package com.twu.biblioteca.command;

import com.twu.biblioteca.Library;
import com.twu.biblioteca.exception.NoSuchBookException;

import java.io.IOException;

public class ReserveCommand implements Command, NeedLogin {
    public static final String SUCESS_TIP = "Thank You! Enjoy the book.";
    public static final String FAIL_TIP = NoSuchBookException.LACK_BOOK_TIP;
    public static final String INPUT_BOOK_ID = "Please input the id of book!";

    @Override
    public void execute(Library library) throws IOException, NoSuchBookException {
        library.reserveBook();
    }

}
